package org.belkodevelop.realty.dto;

/**
 * @author VMozolev
 */
public class RealtyStatus {
    private boolean error;
    private String errorCode;
    private String message;
    private Long realtyId;
    private Long announcementId;

    public RealtyStatus(boolean error) {
        this.error = error;
    }

    public RealtyStatus(boolean error, String errorCode) {
        this.error = error;
        this.errorCode = errorCode;
    }


    public RealtyStatus(boolean error, String errorCode, String message) {
        this.error = error;
        this.errorCode = errorCode;
        this.message = message;
    }

    public boolean getError() {
        return error;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public String getMessage() {
        return message;
    }

    public Long getRealtyId() {
        return realtyId;
    }

    public void setRealtyId(Long realtyId) {
        this.realtyId = realtyId;
    }

    public Long getAnnouncementId() {
        return announcementId;
    }

    public void setAnnouncementId(Long announcementId) {
        this.announcementId = announcementId;
    }
}
